<template>
	<view>
		<u-navbar title="我的证书"></u-navbar>
		<view style="width: 100%;display: flex;flex-direction: column;padding: 24rpx;box-sizing: border-box;background: #FFFFFF;margin-top: 24rpx;">
			<view class="my-center-menu" style="display: flex;flex-direction: column;justify-content: center;background: #FFFFFF;margin-top: 36rpx;padding: 0 24rpx;box-sizing: border-box;font-size: 32rpx;">
				<view style="width: 100%;border-bottom: 1px solid #dedede; height: 112rpx;display: flex;align-items: center;" v-for="(item,index) in certificateList" :key="index">
					<view style="flex: 1;display: flex;flex-direction: column;"  >
						<view>{{item.qualificationName}}</view>
						<view>{{item.obtainTime}}</view>
					</view>
					<view style="width: 220rpx; height: 80rpx; text-align: center; line-height: 80rpx; border-radius: 80rpx; color: #FFFFFF; background: linear-gradient(109.9831065219deg, rgba(246, 158, 151, 1) 0%, rgba(234, 101, 94, 1) 100%);">
						查看证书
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				certificateList:[]
			}
		},
		onLoad(option) {
			this.initCertificate()
		},
		methods: {
			initCertificate(){
				this.$util.request('app/classroom/v1/getMyQualificationInfo','get',{},true).then(res=>{
					this.certificateList = res.data
				})
			}
		}
	}
</script>

<style>

</style>
